package ac

type AcNode struct {
	data     uint8
	children [26]*AcNode
	EndChar  bool
	length   int
	fail     *AcNode
}

func NewAcNode(data uint8) *AcNode {
	return &AcNode{
		data:     data,
		children: [26]*AcNode{},
		EndChar:  false,
		length:   -1,
		fail:     nil,
	}
}
